package com.sprint.service.impl;

import com.sprint.dao.PaymentDao;
import com.sprint.entities.Payment;
import com.sprint.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired //或者使用@Resource
    private PaymentDao paymentDao;
    @Override
    public int create(Payment payment) {
        System.out.println(" 测试 热部署 111111");
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        System.out.println(" 测试 热部署 2222");
        return paymentDao.getPaymentById(id);
    }
}
